package io.github.talelin.latticy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.github.talelin.latticy.dto.machine.CreateOrUpdateAswDTO;
import io.github.talelin.latticy.model.AswDO;
import io.github.talelin.latticy.model.AswItemDO;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator@TaleLin
 * @since 2021-05-28
 */

public interface AswService extends IService<AswDO> {

    @Autowired

    List<AswDO> findAll();

    List<Map<String,Object>> fingAllAsw();

    List<AswItemDO> fingAllAswItemByID(Integer AswItemID);

    List<Map<String,Object>> findAswByID(Integer ID);

    AswDO getAswById(Integer id);

    Integer deleteAswItemByID(Integer id);

    String selectNameBySortID(Integer sortID);

    boolean  deleteById(Integer id);

    boolean createAsw(CreateOrUpdateAswDTO validator);

    Integer findMaxId();

    Integer insertAswItem(Map<String,Object> map);
}
